@charset "UTF-8";

.blue{
    background-color: #a9e2e9;
}
.coral{
    background-color: #f6c8ab;
}
.ex1 .parent {

    min-width: 100px;
    min-height: 100px;
    width: 500px;
    height: 500px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    resize: both;
    cursor: ew-resize;
}

.ex1 .parent .box{
    width: 50px;
    height: 50px;
}


.ex2 .parent {
    margin-top: 50px;
    width: 700px;
    height: 500px;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.ex2 .box {
    flex: 1 1 150px; /*  flex-grow: 1 ，表示自动延展到最大宽度 */
    flex: 0 1 150px; /*  No stretching: */
    margin: 5px;
    background-color: #d4f1c3;
    text-align: center;
    line-height: 490px;
}
